<script>
	$(document).ready(function(){
		
			$('#kd_pt').change(function(){
			$('#kd_fakultas').load(base_url+'prosedur/getFakultasbyUniversitas/'+$('#kd_fakultas').val());
		});
		
		$('#kd_pt').change(function(){
			$('#kd_program').load(base_url+'prosedur/getProgrambyUniversitas/'+$('#kd_program').val());
		});
		
	});
</script>

<form id="form1" method="post" style="margin:10px">
	<input type="hidden" name="kode" id="kode" value="<?=$kode?>">
	<div class="fitem" >
		<label style="width:100px">Universitas </label>:
		<select id="kd_pt" name="kd_pt" style="width:200px;">
			<?=$this->mdl_prosedur->OptionUniversitas();?>
		</select>
	</div>
	<div class="fitem" >
		<label style="width:100px">Fakultas </label>:
		<select id="kd_fakultas" name="kd_fakultas" style="width:200px;">
			<?=$this->mdl_prosedur->OptionFakultasByUniversitas(array('value'=>$kd_fakultas, 'kd_pt'=>$kd_pt));?>
		</select>
	</div>
	<!--<div class="fitem" >
		<label style="width:100px">Program </label>:
		<select id="kd_program" name="kd_program" style="width:200px;">
			<?=$this->mdl_prosedur->OptionProgramByUniversitas(array('value'=>$kd_program, 'kd_pt'=>$kd_pt));?>
		</select>
	</div>-->
	<div class="fitem" >
		<label style="width:100px">Jenjang </label>:
		<select id="kd_jenjang" name="kd_jenjang" style="width:200px;">
			<?=$this->mdl_prosedur->OptionJenjang(array('value'=>$kd_jenjang));?>
		</select>
	</div>
	<div class="fitem" >
		<label style="width:100px">Kode prodi </label>:
		<input name="kd_prodi" size="10" required="true" value="<?=$kd_prodi?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Nama prodi </label>:
		<input name="nama_prodi" size="30" required="true" value="<?=$nama_prodi?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Status</label>:		
		<input type="checkbox" name="status" <?=$status=='A'?'checked':''?>/> Aktif
	</div>
</form>
	

